package com.transac.demo.controller;

import com.transac.demo.service.TransactionRequiredNewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestRequiredNewController {
    @Autowired
    TransactionRequiredNewService transactionRequiredNewService;

    @PostMapping("/testRequiredNew1")
    @ResponseBody
    public void testRequiredNew1() {
        transactionRequiredNewService.updateMoney1();
    }

    @PostMapping("/testRequiredNew2")
    @ResponseBody
    public void testRequiredNew2() {
        transactionRequiredNewService.updateMoney2();
    }

    @PostMapping("/testRequiredNew3")
    @ResponseBody
    public void testRequiredNew3() {
        transactionRequiredNewService.updateMoney3();
    }
}
